// flex相关
@mixin flex($direction:column) {
  display: flex;
  flex-direction: $direction;
}

//主轴垂直方向
.flex,
.flex-column,
.flex-y {
  @include flex;
}

//主轴水平方向
.flex-row,
.flex-x {
  @include flex('row');
}

// 主轴水平方向，起点在右侧
.flex-x-reverse,
.flex-row-reverse {
  @include flex('row-reverse')
}

// 主轴垂直方向，起点在下侧
.flex-y-reverse,
.flex-column-reverse {
  @include flex('column-reverse')
}

.center-flex {
  align-items: center;
  justify-content: center;
}

.center-x {
  align-items: center;
}

.between {
  justify-content: space-between;
}

.match-parent {
  flex: 1;
}

.flow {
  display: flex;
  flex-wrap: wrap;
}

.flex-shrink {
  /*防止被压缩*/
  flex-shrink: 0;
}

.container-filter {
  display: flex;
  flex-wrap: wrap;

  .el-date-editor {
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .el-input {
    width: 200px;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .el-button {
    margin-right: 10px;
    margin-bottom: 10px;
  }
}

.admin_title {
  color: #333333;
  font-size: 20px;
  font-weight: bolder;
  position: relative;
  padding-left: 16px;
  margin: 20px 0;

  &:before {
    position: absolute;
    width: 4px;
    height: 21px;
    background: #4087FF;
    display: block;
    content: '';
    left: 0;
    top: 5px;
  }
}

//::-webkit-scrollbar {
//  display: none;
//}

.dialog-scroll {
  max-height: 70vh;
  padding-right: 10px;
  overflow-y: scroll;
  box-sizing: border-box;
}

.dialog-content {
  display: flex;
  flex-direction: column;

  .title {
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
  }

  .title-upload {
    &::after {
      content: '支持图片/PDF/WORD/视频文件，最多不超过10个文件，单个文件不大于30M';
      color: #999999;
      font-size: 12px;
      font-weight: normal;
      margin-left: 10px;
    }
  }

  .item {
    margin-left: 30px;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    color: #333333;

    span {
      height: 30px;
      width: 100px;
      flex-shrink: 0;
      color: #666666;
    }

    img {
      width: 120px;
      height: 120px;
    }
  }

  .item-files {
    height: fit-content;

    .files-p {
      display: flex;
      flex-flow: wrap;

      .file {
        width: 100px;
        height: 100px;
        border-radius: 8px;
        overflow: hidden;
        margin: 5px;
        position: relative;
      }

      .img {
        width: 100%;
        height: 100%;
        vertical-align: center;
        object-fit: cover;
      }

      .ic-delete {
        position: absolute;
        right: 0;
        top: 0;
        padding:0 0 5px 5px;
      }

      .video-p {
        position: relative;
        width: 100%;
        height: 100%;

        video {
          width: 100%;
          height: 100%;
          vertical-align: center;
          object-fit: cover;
        }

        .ic-play {
          width: 30px;
          height: 30px;
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
        }
      }

      .file-download {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        .img {
          width: 100px;
          height: 100px;
          vertical-align: center;
          object-fit: cover;
          margin-bottom: 4px;
        }
      }
    }
  }
}

.noEidt {
  /*::v-deep */
  .el-input__inner[readonly] {
    border: none;
  }

  /*::v-deep */
  .el-input__inner[disabled] {
    border: none;
    color: #606266;
    background-color: #FFFFFF
  }
}

.remark-co {
  border-radius: 8px;
  border: 1px solid #E1E1E1;
  padding: 30px;
  margin: 0 30px;
}

.dialog-footer {
  el-button {
    margin: 10px;
  }
}

.divider {
  border-bottom: 1px solid #999999;
  margin: 20px 0;
}

